
import c3d from '../../cc';
import { CMD, I_Task, I_TaskStep, MaskType } from '../GuideTaskMgr';
import { TaskBase } from './taskBase';
/*
 * @features: 功能
 * @description: 说明
 * @Date: 2021-06-11 09:28:52
 * @Author: judu233(769471424@qq.com)
 * @LastEditTime: 2021-10-05 23:40:32
 * @LastEditors: judu233
 */

const { ccclass, property } = c3d._decorator;

let guideTextList = [
    '点击查看电脑消息',
    '点击查看信件消息',
    '点击关闭特写界面',
    '点击前往门',
    '点击旋转门把手',
    '点击退出当前界面',
    '点击拾取道具',
    '点击再次前往门',
    '点击选中道具',
    '点击使用道具',
]

@ccclass
export default class Task1 extends TaskBase implements I_Task {
    taskName = '序章新手引导';
    // debug = true;
    maskFillet = 100;
    maskVirtualization = 0;
    finishCloseMask = true;
    finishCloseFinger = true;
    endDelayTime = 0.3;
    maskType = MaskType.cicular;
    // startStep = 4;
    // autoSave = true;
    steps = [
        {
            stepIndex: 0,  //数组索引为0
            name: '序章:',
            command: {
                cmd: CMD.MOVEFINGER,
                text: guideTextList[0],
                findArg: 'clickDesk',
            },
            endDelayTime: 1,
        },
        {
            stepIndex: 1,
            name: '序章:',
            command: {
                cmd: CMD.MOVEFINGER,
                text: guideTextList[1],
                findArg: 'clickComputer',
            },
            bubbleIsUp: false,
        },
        {
            stepIndex: 2,
            name: '序章:',
            command: {
                cmd: CMD.MOVEFINGER,
                text: guideTextList[2],
                findArg: 'clickBackScene1',
            },
        },
        {
            stepIndex: 3,
            name: '序章:',
            command: {
                cmd: CMD.MOVEFINGER,
                text: guideTextList[3],
                findArg: 'clickBedroom',
            },
            bubbleIsRight: false,
        },
        {
            stepIndex: 4,
            name: '序章:',
            command: {
                cmd: CMD.MOVEFINGER,
                text: guideTextList[4],
                findArg: 'clickBedroomHandle',
            },
            nodeFindTime: 0.2,
            maskFillet: 150,
        },
        {  //退出门特写界面
            stepIndex: 5,
            name: '序章:',
            command: {
                cmd: CMD.MOVEFINGER,
                text: guideTextList[5],
                findArg: 'clickCloseDoor',
            },
        },
        { //点击获取润滑油道具
            stepIndex: 6,
            name: '序章:',
            command: {
                cmd: CMD.MOVEFINGER,
                text: guideTextList[6],
                findArg: 'clickOilProps',
            },
            bubbleIsRight: false,
        },
        {
            stepIndex: 7,
            name: '序章:',
            command: {
                cmd: CMD.MOVEFINGER,
                text: guideTextList[7],
                findArg: 'clickBedroomAgain',
            },
            bubbleIsRight: false,
        },
        { //选中道具
            stepIndex: 8,
            name: '序章:',
            command: {
                cmd: CMD.MOVEFINGER,
                text: guideTextList[8],
                findArg: 'clickChooseOilProp',
            },
        },
        {
            stepIndex: 9,
            name: '序章:',
            command: {
                cmd: CMD.MOVEFINGER,
                text: guideTextList[9],
                findArg: 'clickBedroomHandleAndUseProp',
            },
            maskFillet: 170
        },
    ] as I_TaskStep[];
}
